<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>综合教务管理系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-image: url("img/login-backgrand.png");
            background-size: cover;
            background-position: bottom center;
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: rgba(76, 175, 80, 0.8);
            color: white;
            padding: 10px 20px;
            border: 2px solid rgba(76, 175, 80, 0.8);
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }
        nav {
            display: flex;
            justify-content: flex-end;
            margin-right: 100px;
            background-color: rgba(76, 175, 80, 0.1);
        }
        nav div {
            position: relative;
            padding: 15px;
            color: white;
            cursor: pointer;
            border-radius: 5px;
            margin-right: 10px;
            transition: background-color 0.3s;
        }
        nav div:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        .dropdown {
            display: none;
            position: absolute;
            background-color: rgba(51, 51, 51, 0.9);
            min-width: 120px;
            z-index: 1;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }
        .dropdown div {
            padding: 8px 12px;
            color: white;
        }
        .dropdown div:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        nav div:hover .dropdown {
            display: block;
        }
        .login-module {
            position: absolute;
            right: 100px;
            top: 55%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.9);
            padding: 30px;
            width: 300px;
            height: 400px;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }
        .login-module input {
            margin: 5px 0;
            padding: 10px;
            width: 97%;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
        /*登录按钮样式*/
        .login-module .login-button {
            padding: 10px;
            width: 100%;
            border: none;
            border-radius: 5px;
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
            margin-top: 10px;
            transition: background-color 0.3s;
        }
        /*登录按钮悬停效果*/
        .login-module .login-button:hover {
            background-color: #45a049;
        }
        /*登录，注册按钮样式*/
        .login-module .register-button {
            padding: 10px;
            width: 100%;
            border: none;
            border-radius: 5px;
            background-color: #007BFF;
            color: white;
            cursor: pointer;
            margin-top: 10px;
            transition: background-color 0.3s;
        }
        /*注册按钮悬停效果*/
        .login-module .register-button:hover {
            background-color: #0056b3;
        }
        .other-login {
            margin-top: 20px; /* 与上方内容间距 */
            text-align: center; /* 中心对齐 */
        }
        .other-login h3 {
            margin-bottom: 10px; /* 标题下方间距 */
        }
        .social-icons {
            display: flex;
            justify-content: center; /* 中心对齐 */
            gap: 15px; /* 图标间距 */
        }
        .social-icon {
            position: relative; /* 使二级菜单相对定位 */
            cursor: pointer; /* 鼠标悬停效果 */
        }
        .social-icon img {
            width: 20px; /* 图标宽度 */
            height: 20px; /* 图标高度 */
        }
        .social-icon .tooltip {
            display: none; /* 默认隐藏 */
            position: absolute;
            bottom: 50px; /* 弹出位置 */
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */
            padding: 5px;
            border-radius: 5px; /* 圆角 */
            white-space: nowrap; /* 不换行 */
        }
        .social-icon .tooltip img {
            width: 100px; /* 弹出图片宽度 */
            height: auto; /* 高度自适应 */
        }
        .social-icon:hover .tooltip {
            display: block; /* 悬停时显示 */
        }
    </style>
</head>
<body>

<header>
    <h1>综合教务管理系统</h1>
    <nav>
        <div>
            技术支持
            <div class="dropdown">
                <div>MooDy</div>
                <div>Niko</div>
                <div>橘络</div>
                <div>鬼狙</div>
                <div>赵孙李</div>
            </div>
        </div>
        <div>
            赞助
            <div class="dropdown">
                <div>601💎VIP👑会所赞助</div>
            </div>
        </div>
    </nav>
</header>

<div class="login-module">
    <h2>用户登录</h2>
    <input type="text" placeholder="用户名">
    <input type="password" placeholder="密码">
    <button class="login-button" type="button">登录</button>
    <button class="register-button" type="button" onclick="redirectToRegister()">注册</button>
    <div class="other-login">
        <h3>其他方式登录</h3>
        <div class="social-icons">
            <div class="social-icon">
                <img src="img/weixin-login.jpg" alt="图标1">微信登录
                <div class="tooltip">
                    <img src="img/wechat-qrcode.jpg" alt="微信二维码">
                </div>
            </div>
            <div class="social-icon">
                <img src="img/qq-login.jpg" alt="图标2">QQ登录
                <div class="tooltip">
                    <img src="img/qq-qrcode.png" alt="QQ二维码"></img>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    function redirectToRegister() {
        window.location.href = 'rigester-demo.html';
    }
</script>
</html>
